package com.share.netdisk.share.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.share.netdisk.share.model.Share;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ShareDao extends BaseMapper<Share> {

	@Select("SELECT COUNT(*) FROM share WHERE file_code = #{fileCode}")
	boolean existsByFileCode(String fileCode);//判断分享码是否存在

}
